package com.fs.controller;

import com.fs.pojo.Tatus;
import com.fs.service.TatusService;
import com.fs.vo.ResponseData;
import com.fs.vo.ResultEnums;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author yyds
 * @fileName TatusController
 * @date 2024/10/23 19:37
 * @description
 **/
@RestController
@RequestMapping("/tatus")
public class TatusController {
    @Resource
    private TatusService tatusService;

    @GetMapping("/tatusList")
    public ResponseData<List<Tatus>> findAll() {
        return new ResponseData<>(ResultEnums.OK, tatusService.findAll());
    }
}
